package com.sl.au.entity;

import java.util.Date;

import javax.persistence.*;

/**
 *普通价格单
 */
@Entity
@Table(name="sl_crm_quote")
public class Quote extends AuditRoot{
	        /**项目名称*/
			@Column(name="sName")
			private String name;
			/** 客户id */
			@Column(name = "sCustomerId")
			private String customerId;
			public String getCustomerId() {
				return customerId;
			}
			public void setCustomerId(String customerId) {
				this.customerId = customerId;
			}
			/** 客户名称 */
			@Column(name = "sCustomerName")
			private String customerName;
			/**备注*/
			@Column(name="sMemo")
			private String memo;
			/** 交货日期 */
			@Column(name = "DdeliveryDate")
			@Temporal(TemporalType.TIMESTAMP)
			private Date deliveryDate;
			/** 总原价 */
			@Column(name="nCostSum")
			private float costSum;
			/** 总报价 */
			@Column(name="nSum")
			private float sum;
			/**
			 * 浮动比例
			 */
			@Column(name="nRatio")
			private float ratio;
			/**浮动金额*/
			@Column(name="nDiscount")
			private float discount;
			/** 拟报价 */
			@Column(name="nAssumeSum")
			private double assumeSum;
			/** 报价说明 */
			@Column(name="sQuoteExplain")
			private String quoteExplain;
			/** 是否新产品、特殊行业、成套装置 */
			@Column(name="sIsNewProduct")
			private String isNewProduct;
			/**	创建者 */
			@ManyToOne
			private User user;
			/** 附件数*/
			@Transient
			private Integer attachCount;
			
			public String getName() {
				return name;
			}
			public void setName(String name) {
				this.name = name;
			}
			public String getMemo() {
				return memo;
			}
			public void setMemo(String memo) {
				this.memo = memo;
			}
			public float getSum() {
				return sum;
			}
			public void setSum(float sum) {
				this.sum = sum;
			}
			public float getRatio() {
				return ratio;
			}
			public void setRatio(float ratio) {
				this.ratio = ratio;
			}
			public float getDiscount() {
				return discount;
			}
			public void setDiscount(float discount) {
				this.discount = discount;
			}
			public double getAssumeSum() {
				return assumeSum;
			}
			public void setAssumeSum(double assumeSum) {
				this.assumeSum = assumeSum;
			}
			public String getQuoteExplain() {
				return quoteExplain;
			}
			public void setQuoteExplain(String quoteExplain) {
				this.quoteExplain = quoteExplain;
			}
			public String getIsNewProduct() {
				return isNewProduct;
			}
			public void setIsNewProduct(String isNewProduct) {
				this.isNewProduct = isNewProduct;
			}
			public User getUser() {
				return user;
			}
			public void setUser(User user) {
				this.user = user;
			}
			public float getCostSum() {
				return costSum;
			}
			public void setCostSum(float costSum) {
				this.costSum = costSum;
			}
			public String getCustomerName() {
				return customerName;
			}
			public void setCustomerName(String customerName) {
				this.customerName = customerName;
			}
			public Date getDeliveryDate() {
				return deliveryDate;
			}
			public void setDeliveryDate(Date deliveryDate) {
				this.deliveryDate = deliveryDate;
			}
			public Integer getAttachCount() {
				return attachCount;
			}
			public void setAttachCount(Integer attachCount) {
				this.attachCount = attachCount;
			}
			
}
